﻿@{
    string HPA = ViewData["HPA"] as string;
    var hPaDic = ViewData["HPaDic"] as Dictionary<string, string>;

}
<li id="hpali">
    <span class="sp-title">位势高度：</span>
    <div class="choose">
        @foreach (var key in hPaDic.Keys)
        {
              <label class="radio-inline">
                    <input type="radio" name="HPA"  value="@key">@hPaDic[key]
                </label>
        }
    </div>
</li>
<script type="text/javascript">
    $(document).ready(function () {
        $("#hpali").find("input[name='HPA'][value='@HPA']").prop("checked", true);
        $("#hpali").find("input[name='HPA']").click(function () {
            @ViewData["JsFun"];
        });
    });
</script>